import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus';
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import 'element-plus/lib/theme-chalk/index.css';
import http from './untils/api.js';
import * as echarts from 'echarts';
import 'lib-flexible/flexible';
// 引入bootstrap样式
import 'bootstrap/dist/css/bootstrap.min.css'
import './untils/common.css' /*引入公共样式*/
const app = createApp(App)
// app.config.globalProperties.$axios=Axios;
app.config.globalProperties.$http = http;
var dayjs = require('dayjs')
//import dayjs from 'dayjs' // ES 2015
dayjs().format()

app.use(ElementPlus, { locale, size: 'small', zIndex: 3000 }).use(router).use(store);
app.mount('#app');